package src.com.qf.utils;

import java.util.Base64;

public class Base64Util {

    //加密
    public static String encode(String str){
        return Base64.getEncoder().encodeToString(str.getBytes());
    }


    //解密
    public static String decode(String str){
        return new String(Base64.getDecoder().decode(str.getBytes()));
    }
}
